package top.arryweb.application.common.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description MybatisPlus配置
 * @Author mac
 * @Date 2021/5/27
 **/
@Configuration
public class MybatisPlusConfig {

  /**
   * 配置分页插件
   */
  @Bean
  public PaginationInterceptor paginationInterceptor() {
    return new PaginationInterceptor();
  }

  /**
   * Springboot整合MybatisPlus https://www.cnblogs.com/liuyj-top/p/12976396.html
   *
   * MyBatis-Plus官方文档  https://mp.baomidou.com/guide/generator.html
   *
   * mybatis-plus主键生成策略 https://www.yht7.com/news/114202
   *
   * MyBatis-Plus id主键使用ID_WORKER策略踩坑记录 http://www.cxyzjd.com/article/M82_A1/103412444
   */
}
